package com.asion.gankapp.servers;

import com.asion.gankapp.entrys.BaseEntry;
import com.asion.gankapp.entrys.BaseMeituEntry;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface ServiceApi {

    @GET("data/{type}/20/{page}")
    Call<BaseEntry> getAllTypeCommend(@Path("type") String type, @Path("page") int page);

    @GET("list?rows=100")
    Call<BaseMeituEntry> getMeituCommend(@Query("id") int id,@Query("page") int page);

    @GET("random/data/all/20")
    Call<BaseEntry> getRandomCommend();

    @GET("search/query/{qurry}/category/all/count/20/page/{page} ")
    Call<BaseEntry> getSearchCommend(@Path("qurry") String qurry,@Path("page") int page);
}
